package com.turing.mission.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient("customer-server")
public interface CustomerService {

    @GetMapping("/customer/cus/geCusById")
    Result geCusById(@RequestParam("id") String id);

    @PatchMapping("/customer/cus/cusEdit")
    Result cusEdit(@RequestBody JSONObject jsonObject);


}
